
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/***
 * 一卡通实体类
 * @author dawei
 *
 */
@Entity
@Table(name = "t_OneCard")
public class OneCard
{
    //PK
    private Long id;

    private String name;

    private String cardNo;

    private String mobi;

    /**门店地址***/
    private String mendAddress;

    /**获取方式**/
    private String getType;

    /**创建时间**/
    private String crateDate;

    /**更新时间**/
    private String updateDate;

    /**状态，默认0，扩展待用**/
    private String state;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    public String getUpdateDate()
    {
        return updateDate;
    }

    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public String getState()
    {
        return state;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public String getCardNo()
    {
        return cardNo;
    }

    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    public String getMobi()
    {
        return mobi;
    }

    public void setMobi(String mobi)
    {
        this.mobi = mobi;
    }

    public String getMendAddress()
    {
        return mendAddress;
    }

    public void setMendAddress(String mendAddress)
    {
        this.mendAddress = mendAddress;
    }

    public String getGetType()
    {
        return getType;
    }

    public void setGetType(String getType)
    {
        this.getType = getType;
    }

    @Override
    public String toString()
    {
        return "OneCard [cardNo=" + cardNo + ", crateDate=" + crateDate + ", getType=" + getType + ", id=" + id + ", mendAddress=" + mendAddress + ", mobi=" + mobi + ", name=" + name + ", state=" + state + ", updateDate=" + updateDate + "]";
    }

}
